<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="author" th:content="${contentAuthor}"/>
    <meta name="description" th:content="${settings.seo_description}"/>
    <meta name="keywords" th:content="${settings.seo_keywords}"/>
    <link rel="shortcut icon" th:href="${settings.website_logo_small}">
    <link rel="stylesheet" href="/static/def/plugins/layui/css/layui.css">
    <link rel="stylesheet" href="/static/def/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/def/plugins/animate/animate.min.css">
    <link rel="stylesheet" href="/static/def/css/style.css">
    <link rel="stylesheet" href="/static/def/css/layui-theme-nbv5.css">
    <link rel="stylesheet" href="/static/def/plugins/pushbar/pushbar.css">
    <link rel="stylesheet" href="/static/def/css/simple.css">
    <link rel="stylesheet" href="/static/def/css/note.css">
    <link rel="stylesheet" href="/static/def/plugins/editormd/css/editormd.preview.min.css">
    <title th:text="${settings.website_name+ ' '+settings.def_theme_conf.nav_menus.menu_note}"></title>
</head>
<body class="layui-anim layui-anim-fadein simple">
<!--顶部导航栏-->
<div th:replace="templates/def/fragment/header  (cur='note')"></div>
<!--顶部文字-->
<div class="layui-container top-block">
    <blockquote class="layui-elem-quote">
        <span class="layui-breadcrumb">
            <a href="/">网站首页</a>
            <a href="/note" th:text="${settings.admin_global_nickname}+' 的笔记'"></a>
        </span>
        <div class="clock layui-show-md-inline-block layui-show-lg-inline-block layui-hide-xs layui-hide-sm">
            <span class="clock-font">当前日期</span>：<span id="current-datetime"></span>
        </div>
    </blockquote>
</div>

<!--内容文章正体-->
<div id="note-body" class="layui-container">

</div>

<!--底部导航栏-->
<div th:replace="templates/def/fragment/footer"></div>
<!--移动设备菜单导航-->
<div th:replace="templates/def/fragment/mobile_nav"></div>

<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="/static/def/plugins/layui/layui.js"></script>
<script src="/static/def/js/svg.js"></script>
<script src="/static/def/plugins/jquery/jquery-2.1.4.min.js"></script>
<script src="/static/def/js/script.js"></script>
<script src="/static/def/js/notepress.js"></script>
<script src="/static/def/plugins/hc-sticky/hc-sticky.min.js"></script>
<script src="/static/def/plugins/pushbar/pushbar.js"></script>
<script src="/static/def/plugins/editormd/lib/marked.min.js"></script>
<script src="/static/def/plugins/editormd/lib/prettify.min.js"></script>
<script src="/static/def/plugins/editormd/lib/raphael.min.js"></script>
<script src="/static/def/plugins/editormd/lib/underscore.min.js"></script>
<script src="/static/def/plugins/editormd/lib/flowchart.min.js"></script>
<script src="/static/def/plugins/editormd/lib/jquery.flowchart.min.js"></script>
<script src="/static/def/plugins/editormd/lib/sequence-diagram.min.js"></script>
<script src="/static/def/plugins/editormd/editormd.min.js"></script>
<!--suppress JSCheckFunctionSignatures, JSIncompatibleTypesComparison -->
<script th:inline="javascript">
    $(function () {
        window.addEventListener("scroll", npfront.headerScroll());
        npfront.miniHeader("note-body");
        new Pushbar({
            blur: true,
            overlay: true
        });

        var notetypesetting = [[${settings.def_theme_conf.notetypesetting}]];


        layui.use(['layer', 'element', 'notenbv5', "notenp"], function () {
            var layer = layui.layer,
                element = layui.element,
                notenp = layui.notenp,
                notenbv5 = layui.notenbv5;

            var notePage = [[${notePage}]];
            var searchWords = [[${s eq null ? '' : s}]];
            var noteTags = [[${noteTags}]];

            npfront.miniHeaderNavBtn(layer);
            element.render();
            if ("noteblogv5" === notetypesetting) {
                notenbv5(notePage, searchWords);
            } else if ("notepress" === notetypesetting) {
                var obj = {
                    notePage: notePage,
                    s: searchWords,
                    noteTags: noteTags
                };
                notenp(obj);
            } else {
                layer.msg("主题风格设置出错！");
            }

            if (notePage.total === 0) {
                npfront.footerFixed($(".bottom-nav"), 980);
                $(window).resize(function () {
                    npfront.footerFixed($(".bottom-nav"), 980);
                });
            }

        });

    });
</script>
</body>
</html>